<!--<!DOCTYPE html>-->
<!--<html lang="en">-->
<!--<head>-->
<!--  <meta charset="UTF-8">-->
<!--  <title>Title</title>-->
<!--</head>-->
<!--<body>-->
<!--<h3>数据库中登录</h3>-->
<!--<form action="/loginDb">-->
<!--  username <input type="text" name="username"><br>-->
<!--  password <input type="password" name="password"><br>-->
<!--  <input type="submit">-->
<!--</form>-->
<!--<h1 th:text="#{login.title}">登录</h1>-->
<!--<form action="/login" method="post">-->
<!--  <span th:text="#{login.username}">用户名</span>-->
<!--  <input type="text" name="username"><br>-->
<!--  <span th:text="#{login.password}">密码</span>-->
<!--  <input type="password" name="password"><br>-->
<!--  <input type="submit" th:value="#{login.submit}">-->
<!--</form>-->
<!--<a th:href="@{/login(lang='zh_CN')}" th:text="#{login.language.zh_CN}">中文（中国大陆）</a>-->
<!--<a th:href="@{/login(lang='zh_MO')}" th:text="#{login.language.zh_MO}">中文（澳门）</a>-->
<!--</body>-->
<!--</html>-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title th:text="#{login.title}">登录页面</title>
</head>
<body>
<h1 th:text="#{login.title}">登录</h1>
<form action="/login" method="post">
  <span th:text="#{login.username}">用户名</span>
  <input type="text" name="username"><br>
  <span th:text="#{login.password}">密码</span>
  <input type="password" name="password"><br>
  <input type="submit" th:value="#{login.submit}">
</form>
<a href="?lang=zh_CN">中文（简体）</a>
<a href="?lang=zh_MO">中文（澳门）</a>
<h3>数据库中登录</h3>
<form action="/loginDb">
  <span th:text="#{login.username}">username</span>
  <input type="text" name="username"><br>
  <span th:text="#{login.password}">password</span>
  <input type="password" name="password"><br>
  <input type="submit">
</form>
</body>
</html>